# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-scrypt
pkgver=0.8.15
pkgrel=0
pkgdesc="Python bindings for the scrypt key derivation function"
url="https://pypi.org/project/scrypt/"
arch="all"
license="BSD-2-Clause"
depends="python3"
makedepends="python3-dev openssl-dev py3-setuptools"
source="https://files.pythonhosted.org/packages/source/s/scrypt/scrypt-$pkgver.tar.gz"
builddir="$srcdir/scrypt-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --prefix=/usr --root="$pkgdir"

	# do not install the tests module
	rm -r "$pkgdir"/usr/lib/python*/site-packages/scrypt/tests
}

sha512sums="db5f688b341f816935a0fd5a538d8633a1e43c69c7228d9fc127459c9673528f92405170339a5a43eca86eb5a2ea17b951ac16a203993e452e05f2589914a66f  scrypt-0.8.15.tar.gz"
